home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Eagles Nest BBS 8
/
Eagles_Nest_Mac_Collection_Disc_8.TOAST
/
Developer Tools⁄Additions
/
InsideBa1994
/
InsideBasic-94
/
IB 94
/
LongToDollar
/
FN Long2Dollar.BAS
Wrap
BASIC Source File
|
1993-10-11
|
321b
|
25 lines
DIM 25 gMask$
END GLOBALS
gMask$ = "$ ###,###,###,###.##"
LOCAL FN dollar$(p&)
DIM 25 d$
d! = p&\100
d$ = USING gMask$;d!
END FN = d$
"Demo"
INPUT "Enter pennies: ";p&
d$ = FN dollar$(p&)
PRINT "Dollars: ";d$
PRINT
PRINT "Press RETURN to quit."
DO
k$ = INKEY$
UNTIL LEN(k$)
IF k$ <> CHR$(13) THEN "Demo"
END